using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace Decav.Gatsb.Configuration
{
    /// <summary>
    /// Specifies a mobile provider in the <see cref="GatsbConfigurationSection"/>.
    /// </summary>
    public class MobileProviderConfiguration : ConfigurationElement
    {
        public MobileProviderConfiguration()
        {
        }

        /// <summary>
        /// Gets the display name of the mobile provider.
        /// </summary>
        [ConfigurationProperty("name", IsKey=true, IsRequired=true)]
        public string Name
        {
            get
            {
                return (string)this["name"];
            }
        }

        /// <summary>
        /// Gets the type name of the mobile provider.
        /// </summary>
        [ConfigurationProperty("type", IsRequired = true)]
        public string Type
        {
            get
            {
                return (String)this["type"];
            }
        }
    }
}
